/*
 *  $Id: Meditation.cs 1233 2010-12-18 17:54:48Z thenn.erannor $
 *	This file is a part of Ragima CCG.
 *	(C) 2008 Ragima development group.
 *
 *	Licensed under the terms of the GNU GPL License version 2.
 *
 */

namespace Ragima.Cards001.Neutral.Abilities {
    public class Meditation: PlayerAbilityCard, IAutoCast {
        public Meditation(): base("001_n_a_meditation") {
            Level = CompleteLevel.ReadyForTest;
            Element = ElementType.Neutral;
            AddCondition(new CanMeditationCondition());
        }

        public override void DoAction(TargetArgs args) {
            args.Player.DoMeditation();
            args.Player.Game.EndPhase();
        }

        #region IAutoCast implementation
        bool IAutoCast.IsCategory(AutoCastCategory category) {
            return category == AutoCastCategory.Meditation;
        }
        
        TargetArgs IAutoCast.GetAutoArgs(Player player, AbstractObject caster) {
            return new JogTargetArgs(player, caster, 0);
        }
        #endregion
    }
}
